package cn.bs.mapper;

import cn.bs.domain.dao.Review;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReviewMapper extends BaseMapper<Review> {
    List<Review> getReviewByCanteenId(Integer canteenId);


    Integer getMaxId();

    Review getById(Integer reviewId);

    void deleteByCanteenId(Integer canteenId);

    void deleteByUserId(Integer userId);

}
